<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Department extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
	protected $table = 'departments';

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
	protected $guarded  = [];

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
	public $timestamps = false;

    // 人员
    public function user()
    {
        return $this->hasOne('App\Models\User', 'id', 'manager');
    }
}
